#ifndef LOGGER_H
#define LOGGER_H

#include <QString>
#include <QDebug>


// Logger singletone
class Logger: public QObject
{
    Q_OBJECT
public:
    static Logger* Instance();

    void setFileName(const QString fname);
public slots:
    void addLogEntry(const QString text);
private:
    static Logger* m_pInstance;
    Logger();
//    Logger(QObject *parent = 0);
signals:
    void entryAdded(QString text);
};



#endif // LOGGER_H
